package model.xmlconvert;

import nu.xom.Element;

public class ModelStartFlowChartComponent extends ModelRectangleFlowChartComponent{
	
	public ModelStartFlowChartComponent() {
		super("start");
	}

	@Override
	public Element getXML() {
		return super.getXML();
	}

	@Override
	public boolean addComponentConnection(ModelFlowChartComponent to) {
		
		if(this.connectedComponentsList.size() == 0){
			this.connectedComponentsList.add(ModelChartFactory.createArrowComponent(this, to));
			this.fireModelChangeEvent();
			return true;
		}else{
			return false;
		}
	}

	@Override
	public boolean setOperation(String operation) {
		return false;
	}

	public ModelLinkFlowChartComponent getLink(){
		return null;
	}
}
